package com.zjl.spring.lite;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Auther: zhuangjl
 * @Date: 2021/11/30 9:32
 */
public class TestMode {

    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(FullConfiguration.class, LiteConfiguration.class);
        //Full模式
        FullAMode fullBean = ctx.getBean(FullAMode.class);
        fullBean.printFullMode();
//        //lite模型
        LiteAMode liteBean = ctx.getBean(LiteAMode.class);
        liteBean.printLiteMode();

    }
}
